﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;
using System.IO;


namespace DaCredito
{
    /// <summary>
    /// Classe genérica de settings.
    /// </summary>
    public class GenericSettings : AbstractSettings
    {

        // Repositório para propriedades de uso globalizado
        private static GenericSettings soGlobal;

        public GenericSettings()
            : base((PropertyList)null)
        {
        }

        public GenericSettings(PropertyList aoItems)
            : base(aoItems)
        {
        }

        public GenericSettings(Assembly aoAssembly)
            : base(aoAssembly)
        {
        }

        public GenericSettings(Assembly aoAssembly, string asFileName)
            : base(aoAssembly, asFileName)
        {
        }

        public GenericSettings(string asSectionName)
            : base(asSectionName)
        {
        }

        public GenericSettings(FileInfo aoFile)
            : base(aoFile)
        {
        }

        /// <summary>
        /// Repositório para propriedades de uso globalizado.
        /// </summary>
        public static GenericSettings Global
        {
            get { return soGlobal; }
            set { soGlobal = value; }
        }

        protected override void InitSettings()
        {
        }

    }

}
